<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/7/5
  Time: 9:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<html>
<head>
<title>投票中心</title>
<script type="text/javascript" src="JS/jquery-1.8.3.js"></script>
<script src="CSS/bootstrap.min.js"></script>
<link rel="stylesheet" href="CSS/bootstrap.css">
<style type="text/css">
form {
	width: 30%;
	margin: 0 auto auto;
	background-color: #FFFFCC;
	padding-top: 50px;
	padding-bottom: 50px;
	padding-left: 150px;
}

h2 {
	text-align: center;
}
</style>
</head>
<body>

	<%@include file="top.jsp"%>
	<h2>投票中心</h2>
	<form method="post" action="VoteServlet">
		<h4>请选择你最喜欢的语言:</h4>
		<ol>
			<li><input type="radio" name="vote" value="1">Java</li>
			<li><input type="radio" name="vote" value="2">C</li>
			<li><input type="radio" name="vote" value="3">Ruby</li>
			<li><input type="radio" name="vote" value="4">Pthyon</li>
			<li><input type="radio" name="vote" value="5">PHP</li>
		</ol>

		<input type="submit" value="提交" class="btn btn-default">
		<a href="javascript:history.go(-1)" class="btn btn-default">返回</a>
		<a href="VoteServletSelect">查看结果</a>
		<span>${requestScope.result} </span>

	</form>

</body>
</html>

<script>
	$(function () {
		$("input").click(function () {
			$("span").css("display","none");
        });
    })
</script>